package cn.iocoder.yudao.module.promotion.controller.admin.prizedraw;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.promotion.controller.admin.prizedraw.vo.PrizeDrawPageReqVO;
import cn.iocoder.yudao.module.promotion.controller.admin.prizedraw.vo.PrizeDrawRespVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;


@Tag(name = "管理后台 - 抽奖优惠券")
@RestController
@RequestMapping("/promotion/prize-draw-coupon")
@Validated
public class PrizeDrawCouponController {


    @GetMapping("/couponPageListAdmin")
    @PreAuthorize("@ss.hasPermission('promotion:prize-draw-coupon:query')")
    @Operation(summary = "优惠券类型列表分页查询")
    public CommonResult<PageResult<PrizeDrawRespVO>> couponPageListAdmin(@Valid PrizeDrawPageReqVO pageReqVO) {
        return null;
//        return success(prizeDrawService.getPrizeDrawPage(pageReqVO));
    }

}